#include "HtmlCtrl.h"
#include "../Common/MFCMacroExt.h"

BEGIN_INLINE_MESSAGE_MAP(CHtmlCtrl, CHtmlView)
	ON_WM_MOUSEACTIVATE()
	ON_WM_DESTROY()
END_MESSAGE_MAP()

#if !defined(DISPID_NAVIGATECOMPLETE2)
#define DISPID_NAVIGATECOMPLETE2 252
#endif

#if !defined(DISPID_BEFORENAVIGATE2)
#define DISPID_BEFORENAVIGATE2 250
#endif

#if !defined(DISPID_DOCUMENTCOMPLETE)
#define DISPID_DOCUMENTCOMPLETE 259
#endif

BEGIN_INLINE_EVENTSINK_MAP(CHtmlCtrl, CHtmlView)
	ON_EVENT(CHtmlCtrl, AFX_IDW_PANE_FIRST, DISPID_NAVIGATECOMPLETE2, NavigateComplete2, VTS_DISPATCH VTS_PVARIANT)
	ON_EVENT(CHtmlCtrl, AFX_IDW_PANE_FIRST, DISPID_BEFORENAVIGATE2, BeforeNavigate2, VTS_DISPATCH VTS_PVARIANT VTS_PVARIANT VTS_PVARIANT VTS_PVARIANT VTS_PVARIANT VTS_PBOOL)
	ON_EVENT(CHtmlCtrl, AFX_IDW_PANE_FIRST, DISPID_DOCUMENTCOMPLETE, DocumentComplete, VTS_DISPATCH VTS_PVARIANT)
END_EVENTSINK_MAP()

